﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication2.Models.Speciality>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Speciality
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Специальности</h2>

    <table>
        <tr>
            <th></th>
           
            <th>
                Название            
            </th>
            <th>
                Номер специальности
            </th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Редактировать", "Editspeciality", new { id = item.number })%> |
                <%: Html.ActionLink("Детали", "DetailsSpeciality", new { id = item.number })%> |
               <!-- <%: Html.ActionLink("Delete", "Delete2", new { id=item.number })%>-->
                <%: Html.ActionLink("Просмотреть поданные анкеты ", "SA", new { id = item.number })%>
            </td>
            
            <td>
                 <%: Html.ActionLink(item.name, "Score", new { number = item.number })%> 
            </td>
            <td>
                <%: item.kolvo %>
            </td>
            <td>  
                <%: Html.ActionLink("Детали", "specSubDetails", new { number = item.number })%> 
           </td>
        </tr>
    
    <% } %>

    </table>

   

</asp:Content>

